package a.b;

class j
  implements c
{
  private final c a;
  private b_ b;
  
  j(c paramc, b_ paramb_)
  {
    this.a = paramc;
    this.b = paramb_;
  }
  
  public void a()
  {
    this.a.a();
  }
  
  public void a(double paramDouble)
  {
    this.a.a(this.b.a(paramDouble));
  }
  
  public void b()
  {
    this.a.b();
  }
  
  public long c()
  {
    return this.a.c();
  }
  
  public b_ d()
  {
    return this.b;
  }
  
  public void a(b_ paramb_)
  {
    this.b = paramb_;
  }
  
  public static b_ a(double paramDouble1, double paramDouble2)
  {
    boolean bool = d.o;
    if ((bool) || (0.0D <= paramDouble1))
    {
      if (bool) {
        break label57;
      }
      if (1.0D >= paramDouble1) {}
    }
    else
    {
      throw new IllegalArgumentException("stopAcceleration: " + paramDouble1);
    }
    label57:
    if ((bool) || (0.0D <= paramDouble2))
    {
      if (bool) {
        break label111;
      }
      if (1.0D >= paramDouble2) {}
    }
    else
    {
      throw new IllegalArgumentException("startDeceleration: " + paramDouble2);
    }
    if ((bool) || (paramDouble1 > paramDouble2))
    {
      label111:
      double d = paramDouble1;
      paramDouble1 = paramDouble2;
      paramDouble2 = d;
    }
    return new a_(paramDouble1, paramDouble2);
  }
  
  static class a_
    implements j.b_
  {
    private final double a;
    private final double c;
    private final double e;
    
    a_(double paramDouble1, double paramDouble2)
    {
      this.a = (2.0D / (1.0D - paramDouble1 + paramDouble2));
      this.c = paramDouble1;
      this.e = paramDouble2;
    }
    
    public double a(double paramDouble)
    {
      boolean bool = d.o;
      if (!bool) {
        if (0.0D >= paramDouble) {
          return 0.0D;
        }
      }
      if (!bool) {
        if (1.0D <= paramDouble) {
          return 1.0D;
        }
      }
      if (!bool)
      {
        if (this.c > paramDouble) {
          return this.a / (2.0D * this.c) * paramDouble * paramDouble;
        }
        if (bool) {}
      }
      else if (this.e < paramDouble)
      {
        double d = 1.0D - paramDouble;
        return 1.0D - this.a / (2.0D - 2.0D * this.e) * d * d;
      }
      return this.a * (paramDouble - this.c / 2.0D);
    }
  }
  
  public static abstract interface b_
  {
    public abstract double a(double paramDouble);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.b.j
 * JD-Core Version:    0.7.0.1
 */